package com.lottery.service.pc28.customService;

import com.lottery.entity.CommunionMsg;

import java.util.ArrayList;
import java.util.concurrent.locks.Lock;

public class CostomerClient {
	private int id;
	
	private int serverId;

	private Lock lock;
	private ArrayList<CommunionMsg> messageList;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getServerId() {
		return serverId;
	}

	public void setServerId(int serverId) {
		this.serverId = serverId;
	}

	public Lock getLock() {
		return lock;
	}

	public void setLock(Lock lock) {
		this.lock = lock;
	}

	public CostomerClient() {
		initial();
	}

	public CostomerClient(int id) {
		this.id = id;
		initial();
	}

	void initial() {
		this.messageList = new ArrayList<CommunionMsg>();
	}

	public ArrayList<CommunionMsg> getMessageList() {
		return messageList;
	}

	public void setMessageList(ArrayList<CommunionMsg> messageList) {
		this.messageList = messageList;
	}

}
